package Test;

/**
 * @author 徐志荣
 * @date 2023/4/18 10:37
 */

class MyT extends Thread{
    @Override
    public void run() {
        System.out.println("hi  t");
        try {
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
public class CreateThread1 {

    public static void main(String[] args) throws InterruptedException {
        Thread thread = new MyT();
        thread.run();
        System.out.println("hi main");
    }
}
